c6f0821bd8e9e3704c6bbb6e471c59511598e015,plugins/tasks/tasks-core/src/com/intellij/tasks/trello/TrelloRepository.java,TrelloRepository,executeMethod,#HttpMethod#,333

Before Change


  @NotNull
  private String executeMethod(@NotNull HttpMethod method) throws Exception {
    final HttpClient client = getHttpClient();
    client.executeMethod(method);
    final String entityContent = ResponseUtil.getResponseContentAsString(method);
    if (method.getStatusCode() != HttpStatus.SC_OK) {
      final Header header = method.getResponseHeader("Content-Type");

After Change


  @NotNull
  private <T> T executeMethod(@NotNull HttpUriRequest method, @NotNull ResponseHandler<T> handler) throws Exception {
    final org.apache.http.client.HttpClient client = getHttpClient();
    final HttpResponse response = client.execute(method);
    final StatusLine statusLine = response.getStatusLine();
    if (statusLine.getStatusCode() != HttpStatus.SC_OK) {
      final org.apache.http.Header header = response.getFirstHeader("Content-Type");